package com.hyh.main.display;

import com.hyh.main.weatherdata.Observerable;

public abstract class BaseDisplay implements Observer,DisplayElement{

	private Observerable observable;
	
	public BaseDisplay(Observerable observable) {
		this.observable = observable;
		observable.registerObserver(this);
	}
	
	public void unRegisterObverver(){
		observable.removeObserver(this);
	}
	
	public abstract void display();

	public abstract void update(float temp, float humidity, float pressure);

}
